{% extends "layout2.html" %} 
{% block leftbody %} 
{% if session.logged_in %} 
{% endif %}
<ul class=entries>
	{% for entry in entries %}
	<li style="display:block">
		<article id=96 class="post">

			<div class="post-head">
				<h1 class="post-title"><a href="{{url_for('show_blog', blogid=entry.blogid)}}">{{ entry.title }}</a></h1>
				<div class="post-meta">
					<span class="author">作者：<a href="/author/wangsai/">{{entry.name}}</a></span> &bull;
					<time class="post-date">{{entry.created_date}}</time>
				</div>
			</div>
			<div class="post-content">
				<p>{{ entry.text|safe }}</p>
			</div>
			<div class="post-permalink">
				<a href="{{url_for('show_blog', blogid=entry.blogid)}}" class="btn btn-default">阅读全文</a>
			</div>

		</article>
	</li>

	{% else %}
	<li><em>Unbelievable.  No entries here so far</em> {% endfor %}
</ul>
{% endblock %}